from django.shortcuts import render, redirect, reverse, HttpResponse
from django.utils.safestring import mark_safe  # 后端转义标签

# Create your views here.


def index(request, *args):
    print(args)
    return HttpResponse('index')


def home(request):
    print(reverse('xxx', args=[1, 2, 3]))  # /index/1/
    print(reverse('ooo', kwargs={'year': 10}))
    print(reverse('ooo', args=(111, )))
    return render(request, 'home.html')


def func(request, year):

    return HttpResponse('func')